/**
 * @author: jever
 * @date: 2019/3/6
 * @description:  util.js
 */
export function getRedirectPath({type, avatar}) {
    console.log(type)
    // 根据用户信息 返回跳转地址
    let url = (type === 'boss')? '/boss': '/genius';
    if (!avatar) {
        url += 'info'
    }
    return url;
}

export function getChatId(userId, targetId) {
    return [userId, targetId].sort().join('_')
}